<template>
  <div class="notice-info-container">
    <div class="notice-info-bd">
      <div class="notice-info-title">
        <h4>{{dataForm.title}}</h4>
        <div>
          <span>{{dataForm.sendUser}} / {{dataForm.createTime}}</span>
        </div>
      </div>
      <div class="notice-info-content" v-html="dataForm.content"></div>
      <div class="notice-info-footer">
        <span>接收人员:</span>
        <div>
          <span>林江</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
          <span>林仙</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { getById } from "@/api/notice";
export default {
  data() {
    return {
      dataForm: {
        title: ""
      },
      rules: {},
      arr: [1, 2, 3],
      a: `<p> 如果有一天，我悄然离去。请不要做无用的救护，把医生安排在有用的地方。</p><p> 如果有一天，我悄然离去。请不要做无用的救护，把医生安排在有用的地方。</p>`
    };
  },
  created() {
    this.info();
  },
  methods: {
    async info() {
      const { data } = await getById(this.$route.params.id);
      this.dataForm = data;
    }
  }
};
</script>

<style lang="scss" scoped>
.notice-info {
  &-container {
    margin: 30px;
  }
  &-bd {
    overflow: hidden;
    background-color: #fff;
  }
  &-title {
    text-align: center;
    border-bottom: 1px solid #e2a918;
    h4 {
      color: #18527b;
      font-size: 25px;
    }
    div {
      text-align: center;
      margin-bottom: 10px;
      font-size: 14px;
    }
  }
  &-content {
    padding: 10px 20px;
  }
  &-footer {
    display: flex;
    font-size: 14px;
    margin: 40px 0px 100px 10px;
    span {
      flex: 25%;
    }
    div {
      span {
        display: inline-block;
        width: 40px;
        text-align: center;
      }
    }
  }
}
</style>